package com.qn.gateway.fingerprint;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.Map;
/**
 * qingniu-cloud user source analysis
 *
 * @Author: TXG
 * @Date: 2024/6/11
 * @Version V0.0.2
 */
@Configuration
@ConfigurationProperties(prefix = "armor")
public class NetArmorConfig {
    private boolean fingerprint;
    private boolean securityPolicy;
    private Map<String,String> patterns;
    private LimiterProperties request;
    private LimiterProperties resetStream;

    public boolean isFingerprint() {
        return fingerprint;
    }

    public void setFingerprint(boolean fingerprint) {
        this.fingerprint = fingerprint;
    }

    public boolean isSecurityPolicy() {
        return securityPolicy;
    }

    public void setSecurityPolicy(boolean securityPolicy) {
        this.securityPolicy = securityPolicy;
    }

    public Map<String, String> getPatterns() {
        return patterns;
    }

    public void setPatterns(Map<String, String> patterns) {
        this.patterns = patterns;
    }

    public LimiterProperties getRequest() {
        return request;
    }

    public void setRequest(LimiterProperties request) {
        this.request = request;
    }

    public LimiterProperties getResetStream() {
        return resetStream;
    }

    public void setResetStream(LimiterProperties resetStream) {
        this.resetStream = resetStream;
    }
}
